﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Ama.BugTracker.Models;

namespace Ama.BugTracker.View.Navigator
{
    public partial class Navigator : UserControl
    {
        public Navigator()
        {
            InitializeComponent();
            FirstMenuItem menu = new FirstMenuItem();
            menu.DataContext = new FirstMenuModel("缺陷管理", "/Ama.BugTracker;component/Images/bug.png");            

            FirstMenuItem menu2 = new FirstMenuItem();
            menu2.DataContext = new FirstMenuModel("用户管理", "/Ama.BugTracker;component/Images/users.png");

            FirstMenuItem menu3 = new FirstMenuItem();
            menu3.DataContext = new FirstMenuModel("项目管理", "/Ama.BugTracker;component/Images/project.png");

            this.MenuStackPanel.Children.Add(menu);
            this.MenuStackPanel.Children.Add(menu2);
            this.MenuStackPanel.Children.Add(menu3);
        }

        private void MenuButtonClickEvent(object sender, EventArgs e)
        {
            FirstMenuItem item = sender as FirstMenuItem;
            if (item != null)
            {

            }
        }

        private void SetAllMenuToGreen(StackPanel panel)
        {

        }
    }
}
